<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理后台</title>
<link href="Css/css.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
<!--
function fnOnPageChanged(page) {
	g('search').action += '&page='+page;
	document.search.submit();
}
function g(id) {
	return document.getElementById(id);
}
function fnOnCreated() {
	var url = '<?php echo $this->_url('Create',array('type'=>$type)); ?>';
	document.location.href = url;
}

// -->
</script>
<style type="text/css">
<!--
body {
	background-color: #ddeef2;
}
.even{
	background-color: #F4FAFB;
}
.odd{
	background-color: #FFFFFF;
}
-->
</style>
</head>
<body>
<div id="main_title"><a href="#">后台管理中心</a>—<?php echo $listTitle; ?>
</div>
<div id="main_list">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
    <td width="5%" align="center" bgcolor="#9EC1DE" class="title">编号</td>
    <td width="5%" align="center" bgcolor="#9EC1DE" class="title">姓名</td>
    <td width="6%" align="center" bgcolor="#9EC1DE" class="title">基本工资</td>
    <td width="6%" align="center" bgcolor="#9EC1DE" class="title">工龄工资</td>
    <td width="6%" align="center" bgcolor="#9EC1DE" class="title">保险津贴</td>
    <td width="6%" align="center" bgcolor="#9EC1DE" class="title">加班工资</td>
    <td width="6%" align="center" bgcolor="#9EC1DE" class="title">晚班津贴</td>
    <td width="6%" align="center" bgcolor="#9EC1DE" class="title">全勤奖</td>    
    <td width="6%" align="center" bgcolor="#9EC1DE" class="title">职位津贴</td>
    <td width="6%" align="center" bgcolor="#9EC1DE" class="title">当月奖金</td>
    <td width="6%" align="center" bgcolor="#9EC1DE" class="title">其他奖金</td>
    <td width="6%" align="center" bgcolor="#9EC1DE" class="title">缺勤扣除</td>
    <td width="6%" align="center" bgcolor="#9EC1DE" class="title">工资总额</td>
   <td width="15%" align="center" bgcolor="#9EC1DE" class="title">记录更新时间</td>
    <td align="center" bgcolor="#9EC1DE" class="title">查看详情</td>
  </tr>
  <?php $i = 0; foreach($rowset as $row): $css_class = $i % 2 ? 'even' : 'odd'; $rowid = array('id' => $row[$pk],'type' => $type,'access'=>$_REQUEST['access']); ?>
  <tr class="<?=$css_class?>">
    <td align="center" class="content"><?=$row['user']['code']?></td>
    <td align="center" class="content"><?=$row['user']['name']?></td>
    <td align="center" class="content"><?=$row['base_pay']?></td>
    <td align="center" class="content"><?=$row['seniority_pay']?></td>
    <td align="center" class="content"><?=$row['insurance_pay']?></td>
    <td align="center" class="content"><?=$row['overtime_pay']?></td>
    <td align="center" class="content"><?=$row['night_pay']?></td>
    <td align="center" class="content"><?=$row['full_pay']?></td>
    <td align="center" class="content"><?=$row['position_pay']?></td>
    <td align="center" class="content"><?=$row['bonus']?></td>
    <td align="center" class="content"><?=$row['other_bonus']?></td>
    <td align="center" class="content"><?=$row['absence_pay']?></td>
    <td align="center" class="content"><?=$row['all_pay']?></td>    
    <td align="center" class="content"><?=date('Y-m-d H:i:s',$row['updated'])?></td>
    <td align="center" class="content"><?=$row['attendance_id']?></td>
  </tr>
  <?php $i++; endforeach; ?>
</table>
</div>
<div id="main_copy">Copyright&copy;2003 – 2009 ITeam Monkey. All Rights Reserved ITeam Monkey 版权所有 </div>
</body>
</html>
